<!DOCTYPE html>
<html>
  <head>
    <script src="./node_modules/docx/build/index.umd.js"></script>
    <script src="./FileSaver.js"></script>
  </head>

  <body>
    <h1>耕地保护监管</h1>

    <h3>请勾选需要的区县，它们将生成在同一份报告中</h3>
    <form id="myForm">
      <label><input type="checkbox" name="cou" value="繁昌区">繁昌区</label><br>
      <label><input type="checkbox" name="cou" value="经开区">经开区</label><br>
      <label><input type="checkbox" name="cou" value="镜湖区">镜湖区</label><br>
      <label><input type="checkbox" name="cou" value="鸠江区">鸠江区</label><br>
      <label><input type="checkbox" name="cou" value="南陵县">南陵县</label><br>
      <label><input type="checkbox" name="cou" value="三山区">三山区</label><br>
      <label><input type="checkbox" name="cou" value="湾沚区">湾沚区</label><br>
      <label><input type="checkbox" name="cou" value="无为市">无为市</label><br>
      <label><input type="checkbox" name="cou" value="弋江区">弋江区</label><br>
    </form>

    <button type="button" id="button1">
      耕地保护监管报告下载
    </button>
    <script>
      var arr
      const serveraddress = "http://192.168.3.35:8091/exceltoword/selectGdshape?jcsj=2024Q4"

      var button1 = document.getElementById("button1")
      button1.addEventListener("click", function () {
        var xhr = new XMLHttpRequest()
        xhr.responseType = "json"
        var checkboxes = document.querySelectorAll('input[name="cou"]:checked');
        var values = [];
        checkboxes.forEach((checkbox) => {
            values.push(checkbox.value);
        });
        var ads = serveraddress + "&cous=" + values.join(',')
        xhr.open("GET", ads)
        xhr.send()
        xhr.onreadystatechange = function () {
          if (xhr.readyState == 4 && xhr.status == 200) {
            arr = xhr.response
            generate(arr)
            console.log(arr)
          }
        }
      })

      function generate(arr) {
        //筛选"超标准绿色通道", "坑塘水面", "违法违规批地用地", "违规堆放材料", "违规非农建设", "违规绿化造林", "违规挖塘养殖"几项
        const filterDataByTblx = (arr, tblxList) => {
            return arr.filter(item => tblxList.includes(item.tblx));
        };
        
        // 需要筛选的tblx列表
        const tblxList = ["超标准绿色通道", "坑塘水面", "违法违规批地用地", "违规堆放材料", "违规非农建设", "违规绿化造林", "违规挖塘养殖"];
        
        // 调用筛选函数并获取结果
        const array = filterDataByTblx(arr, tblxList);
        
        // 输出结果数组
        console.log(array);
        var allareasum = 0;
        var allyjjbntmj = 0;
        var allgdmj = 0;
        var increase2 = {
            count:0,
            area:0,
            yjjbntmj:0,
            gdmj:0
        };
        var decrease2 = {
            count:0,
            area:0,
            yjjbntmj:0,
            gdmj:0
        };
        var increasefn = 0 , increasefl = 0;
        var decreasefn = 0 , decreasefl = 0;
        //建立新数组
        const groupedData = {};
        const tblxincrease = {} , tblxdecrease = {};
        array.forEach(item => {
            const { cou, tblx, area, bhlx } = item;
            // 将area从字符串转换为浮点数
            const floatArea = parseFloat(area);
            const floatArea2 = parseFloat(item.yjjbntmj);
            const floatArea3 = parseFloat(item.gdmj);
            allareasum += floatArea;
            allyjjbntmj += floatArea2;
            allgdmj += floatArea3;
            if(bhlx == "减少"){
               decrease2.count++;
               decrease2.area += floatArea;
               decrease2.yjjbntmj += floatArea2;
               decrease2.gdmj += floatArea3;
               if (!(tblx in tblxdecrease)) {
                tblxdecrease[tblx] = { area: 0,tblx: item.tblx};
              }
              tblxdecrease[tblx].area += floatArea;
            }
            if(bhlx == "增加"){
              increase2.count++;
              increase2.area += floatArea;
              increase2.yjjbntmj += floatArea2;
              increase2.gdmj += floatArea3;
              if (!(tblx in tblxincrease)) {
                tblxincrease[tblx] = { area: 0,tblx: item.tblx};
              }
              tblxincrease[tblx].area += floatArea;
            }
            if(bhlx == "增加" && item.fn == "非农"){
              increasefn += floatArea;
            }
            if(bhlx == "增加" && item.fl == "非粮"){
              increasefl += floatArea;
            }
            if(bhlx == "减少" && item.fl == "非粮"){
              decreasefl += floatArea;
            }
            if(bhlx == "减少" && item.fn == "非农"){
              decreasefn += floatArea;
            }
            // 构建分组键
            const key = `${cou}-${tblx}-${bhlx}`;
            // 如果该分组还不存在于哈希表中，则初始化它
            if (!groupedData[key]) {
                groupedData[key] = {
                    cou: cou,
                    tblx: tblx,
                    bhlx: bhlx,
                    sumArea: 0,
                    sumcount: 0
                };
            }
            
            // 更新sumArea和sumcount
            groupedData[key].sumArea += floatArea;
            groupedData[key].sumcount += 1;
        });
        var tblxincreasearray = [];
        var tblxdecreasearray = [];
        const tblxincreasekeys = Object.keys(tblxincrease);
        const tblxdecreasekeys = Object.keys(tblxdecrease);
        for (let key of tblxincreasekeys) {
          var temp = {};
          temp.tblx = tblxincrease[key].tblx;
          temp.area = tblxincrease[key].area;
          tblxincreasearray.push(temp);
        }
        for (let key of tblxdecreasekeys) {
          var temp = {};
          temp.tblx = tblxdecrease[key].tblx;
          temp.area = tblxdecrease[key].area;
          tblxdecreasearray.push(temp);
        }
        tblxincreasearray.sort((a, b) => b.area - a.area);
        tblxdecreasearray.sort((a, b) => b.area - a.area);

        // 将哈希表转换为数组，并格式化area为字符串（如果需要）
        const areaarray = Object.values(groupedData).map(group => ({
            cou: group.cou,
            tblx: group.tblx,
            bhlx: group.bhlx,
            sumArea: group.sumArea.toFixed(2), // 保留两位小数
            sumcount: group.sumcount
        }));
        
        // 输出结果数组
        console.log(areaarray);

        //生成最终数组
        const areaarray1 = [];
        
        // 用于临时存储每个 cou 和 bhlx 组合下不同 tblx 的面积和数量
        const tempStorage = {};
        
        // 遍历 result 数组，计算每个组合的面积和数量
        areaarray.forEach(item => {
            const { cou, tblx, sumArea, sumcount, bhlx } = item;
            const key = `${cou}-${bhlx}`;
        
            if (!tempStorage[key]) {
                tempStorage[key] = {
                    cou: cou,
                    bhlx: bhlx,
                    tblx1area: 0, tblx1count: 0, // 超标准绿色通道
                    tblx2area: 0, tblx2count: 0, // 坑塘水面
                    tblx3area: 0, tblx3count: 0, // 违法违规批地用地
                    tblx4area: 0, tblx4count: 0, // 违规堆放材料
                    tblx5area: 0, tblx5count: 0, // 违规非农建设
                    tblx6area: 0, tblx6count: 0, // 违规绿化造林
                    tblx7area: 0, tblx7count: 0, // 违规挖塘养殖
                    sumarea: 0,
                    sumcount: 0
                };
            }
        
            // 根据 tblx 的值更新对应的面积和数量
            switch (tblx) {
                case '超标准绿色通道':
                    tempStorage[key].tblx1area += parseFloat(sumArea);
                    tempStorage[key].tblx1count += parseFloat(sumcount);
                    break;
                case '坑塘水面':
                    tempStorage[key].tblx2area += parseFloat(sumArea);
                    tempStorage[key].tblx2count += parseFloat(sumcount);
                    break;
                case '违法违规批地用地':
                    tempStorage[key].tblx3area += parseFloat(sumArea);
                    tempStorage[key].tblx3count += parseFloat(sumcount);
                    break;
                case '违规堆放材料':
                    tempStorage[key].tblx4area += parseFloat(sumArea);
                    tempStorage[key].tblx4count += parseFloat(sumcount);
                    break;
                case '违规非农建设':
                    tempStorage[key].tblx5area += parseFloat(sumArea);
                    tempStorage[key].tblx5count += parseFloat(sumcount);
                    break;
                case '违规绿化造林':
                    tempStorage[key].tblx6area += parseFloat(sumArea);
                    tempStorage[key].tblx6count += parseFloat(sumcount);
                    break;
                case '违规挖塘养殖':
                    tempStorage[key].tblx7area += parseFloat(sumArea);
                    tempStorage[key].tblx7count += parseFloat(sumcount);
                    break;
            }
        
            // 更新总和
            tempStorage[key].sumarea += parseFloat(sumArea);
            tempStorage[key].sumcount += parseFloat(sumcount);
        });
        
        // 将临时存储的数据转换为最终的新数组
        for (const key in tempStorage) {
          areaarray1.push(tempStorage[key]);
        }
        
        // 输出最终的新数组
        console.log(areaarray1);

        //筛选出永久基本农田5亩以上或一般耕地10亩以上的项
        const filterData = (array) => {
            return array.filter(item => {
                const area = parseFloat(item.area);
                const yjjbntmj = parseFloat(item.yjjbntmj);
                return area > 10 || yjjbntmj > 5;
            });
        };
        
        // 调用筛选函数并获取结果
        const gdarray = filterData(array);
        
        // 输出结果数组
        console.log(gdarray);
    
        //永久基本农田5亩以上或一般耕地10亩以上新数组
        const groupedData1 = {} ,increasegroup = {}, decreasegroup = {};
        var jbnt_ybgd_sumarea = 0 , yjjbnt_sumarea = 0 , wglhzl_sumarea = 0 ;
        var gdmj_sumarea = 0;
        var increase1 = {
            count:0,
            area:0,
            yjjbntmj:0,
            gdmj:0,
        };
        var decrease1 = {
            count:0,
            area:0,
            yjjbntmj:0,
            gdmj:0,
        };
        var flarea1 = 0 , fnarea1 = 0 , flarea2 = 0 , fnarea2 = 0;

        gdarray.forEach(item => {
            const { cou, tblx, area, bhlx } = item;
            // 将area从字符串转换为浮点数
            const floatArea = parseFloat(area);
            const floatArea2 = parseFloat(item.yjjbntmj);
            const floatArea3 = parseFloat(item.gdmj);
            if(bhlx == "减少"){
               decrease1.count++;
               decrease1.area += floatArea;
               decrease1.yjjbntmj += floatArea2;
               decrease1.gdmj += floatArea3;
               const tblx = item.tblx;
               if (!(tblx in decreasegroup)) {
                decreasegroup[tblx] = { area: 0,tblx: item.tblx};
               }
               decreasegroup[tblx].area += floatArea;
            }
            if(bhlx == "增加"){
              increase1.count++;
              increase1.area += floatArea;
              increase1.yjjbntmj += floatArea2;
              increase1.gdmj += floatArea3;
              const tblx = item.tblx;
              if (!(tblx in increasegroup)) {
                increasegroup[tblx] = { area: 0,tblx: item.tblx};
              }
              increasegroup[tblx].area += floatArea;

            }
            jbnt_ybgd_sumarea += floatArea;
            yjjbnt_sumarea += floatArea2;
            gdmj_sumarea += floatArea3;
            if(item.fl == "非粮" && bhlx == "增加"){
              flarea1 += floatArea;
            }
            if(item.fn == "非农" && bhlx == "增加"){
              fnarea1 += floatArea;
            }
            if(item.fl == "非粮" && bhlx == "减少"){
              flarea2 += floatArea;
            }
            if(item.fn == "非农" && bhlx == "减少"){
              fnarea2 += floatArea;
            }
            

            // 构建分组键
            const key = `${cou}-${tblx}-${bhlx}`;
            
            // 如果该分组还不存在于哈希表中，则初始化它
            if (!groupedData1[key]) {
                groupedData1[key] = {
                    cou: cou,
                    tblx: tblx,
                    bhlx: bhlx,
                    sumArea: 0,
                    sumcount: 0
                };
            }
            
            // 更新sumArea和sumcount
            groupedData1[key].sumArea += floatArea;
            groupedData1[key].sumcount += 1;
        });
        console.log("===========");
        console.log(tblxdecreasearray);
        const increasekeys = Object.keys(increasegroup);
        const decreasekeys = Object.keys(decreasegroup);
        var increasesortArray = [];
        var decreasesortArray = [];
        for (let key of increasekeys) {
          var temp = {};
          temp.tblx = increasegroup[key].tblx;
          temp.area = increasegroup[key].area;
          increasesortArray.push(temp);
        }
        for (let key of decreasekeys) {
          var temp = {};
          temp.tblx = decreasegroup[key].tblx;
          temp.area = decreasegroup[key].area;
          decreasesortArray.push(temp);
        }
        increasesortArray.sort((a, b) => b.area - a.area);
        decreasesortArray.sort((a, b) => b.area - a.area);
        console.log(increasesortArray,decreasesortArray);


        var gztb_sy_countsum = 0 , gztb_sy_areasum = 0 , gztb_sy_yjjbntarea = 0 ,gdmj_sy_areasum = 0;
        var gztb_tt_countsum = 0 , gztb_tt_areasum = 0 , gztb_tt_yjjbntarea = 0 ,gdmj_tt_areasum = 0;;

        var dl_countsum = 0 , dl_areasum = 0 , dl_yjjbntarea = 0 , dl_gdmjarea = 0;
        var dp_countsum = 0 , dp_areasum = 0 , dp_yjjbntarea = 0 , dp_gdmjarea = 0;
        var gq_countsum = 0 , gq_areasum = 0 , gq_yjjbntarea = 0 , gq_gdmjarea = 0;
        arr.forEach(item => {
            const floatArea = parseFloat(item.area);
            const floatArea2 = parseFloat(item.yjjbntmj);
            const floatArea3 = parseFloat(item.gdmj);
            if(item.bz == "11"){
              gztb_sy_countsum++;
              gztb_sy_areasum += floatArea;
              gztb_sy_yjjbntarea += floatArea2;
              gdmj_sy_areasum += floatArea3;
            }
            if(item.bz == "TT"){
              gztb_tt_countsum++;
              gztb_tt_areasum += floatArea;
              gztb_tt_yjjbntarea += floatArea2;
              gdmj_tt_areasum += floatArea3;
            }
            if(item.tblx == "道路"){
              dl_countsum++;
              dl_areasum += floatArea;
              dl_yjjbntarea += floatArea2;
              dl_gdmjarea += floatArea3;
            }
            if(item.tblx == "大棚"){
              dp_countsum++;
              dp_areasum += floatArea;
              dp_yjjbntarea += floatArea2;
              dp_gdmjarea += floatArea3;
            }
            if(item.tblx == "沟渠"){
              gq_countsum++;
              gq_areasum += floatArea;
              gq_yjjbntarea += floatArea2;
              gq_gdmjarea += floatArea3;
            }
        });
   
        // 将哈希表转换为数组，并格式化area为字符串（如果需要）
        const gdarray1 = Object.values(groupedData1).map(group => ({
            cou: group.cou,
            tblx: group.tblx,
            bhlx: group.bhlx,
            sumArea: group.sumArea.toFixed(2), // 保留两位小数
            sumcount: group.sumcount
        }));
        
        // 输出结果数组
        console.log(gdarray1);

        //永久基本农田5亩以上或一般耕地10亩以上最终数组
        const gdarray2 = [];
        
        // 用于临时存储每个 cou 和 bhlx 组合下不同 tblx 的面积和数量
        const tempStorage1 = {};
        
        // 遍历 result 数组，计算每个组合的面积和数量
        gdarray1.forEach(item => {
            const { cou, tblx, sumArea, sumcount, bhlx } = item;
            const key = `${cou}-${bhlx}`;
        
            if (!tempStorage1[key]) {
                tempStorage1[key] = {
                    cou: cou,
                    bhlx: bhlx,
                    tblx1area: 0, tblx1count: 0, // 超标准绿色通道
                    tblx2area: 0, tblx2count: 0, // 坑塘水面
                    tblx3area: 0, tblx3count: 0, // 违法违规批地用地
                    tblx4area: 0, tblx4count: 0, // 违规堆放材料
                    tblx5area: 0, tblx5count: 0, // 违规非农建设
                    tblx6area: 0, tblx6count: 0, // 违规绿化造林
                    tblx7area: 0, tblx7count: 0, // 违规挖塘养殖
                    sumarea: 0,
                    sumcount: 0
                };
            }
        
            // 根据 tblx 的值更新对应的面积和数量
            switch (tblx) {
                case '超标准绿色通道':
                    tempStorage1[key].tblx1area += parseFloat(sumArea);
                    tempStorage1[key].tblx1count += parseFloat(sumcount);
                    break;
                case '坑塘水面':
                    tempStorage1[key].tblx2area += parseFloat(sumArea);
                    tempStorage1[key].tblx2count += parseFloat(sumcount);
                    break;
                case '违法违规批地用地':
                    tempStorage1[key].tblx3area += parseFloat(sumArea);
                    tempStorage1[key].tblx3count += parseFloat(sumcount);
                    break;
                case '违规堆放材料':
                    tempStorage1[key].tblx4area += parseFloat(sumArea);
                    tempStorage1[key].tblx4count += parseFloat(sumcount);
                    break;
                case '违规非农建设':
                    tempStorage1[key].tblx5area += parseFloat(sumArea);
                    tempStorage1[key].tblx5count += parseFloat(sumcount);
                    break;
                case '违规绿化造林':
                    tempStorage1[key].tblx6area += parseFloat(sumArea);
                    tempStorage1[key].tblx6count += parseFloat(sumcount);
                    break;
                case '违规挖塘养殖':
                    tempStorage1[key].tblx7area += parseFloat(sumArea);
                    tempStorage1[key].tblx7count += parseFloat(sumcount);
                    break;
            }
        
            // 更新总和
            tempStorage1[key].sumarea += parseFloat(sumArea);
            tempStorage1[key].sumcount += parseFloat(sumcount);
        });
        
        // 将临时存储的数据转换为最终的新数组
        for (const key in tempStorage1) {
          gdarray2.push(tempStorage1[key]);
        }
        
        // 输出最终的新数组
        console.log(gdarray2);

        //生成最终bhlx为增加和减少的数组
        const increaseArray = areaarray1.filter(item => item.bhlx === '增加');
        const decreaseArray = areaarray1.filter(item => item.bhlx === '减少');
        console.log(increaseArray, decreaseArray);

        //生成永久基本农田5亩以上或一般耕地10亩以上bhlx为增加和减少的数组
        const increaseGdArray = gdarray2.filter(item => item.bhlx === '增加');
        const decreaseGdArray = gdarray2.filter(item => item.bhlx === '减少');
        console.log(increaseGdArray, decreaseGdArray);

        //数组增加总计项
        // 辅助函数，用于计算数组中指定字段的总和
        function sumField(array, fieldName) {
            return array.reduce((acc, item) => acc + (item[fieldName] || 0), 0);
        }
        
        // 计算 increaseArray 中所有项的相关字段之和
        const totalIncrease = {
            cou: '总计',
            tblx1area: sumField(increaseArray, 'tblx1area'),
            tblx1count: sumField(increaseArray, 'tblx1count'),
            tblx2area: sumField(increaseArray, 'tblx2area'),
            tblx2count: sumField(increaseArray, 'tblx2count'),
            tblx3area: sumField(increaseArray, 'tblx3area'),
            tblx3count: sumField(increaseArray, 'tblx3count'),
            tblx4area: sumField(increaseArray, 'tblx4area'),
            tblx4count: sumField(increaseArray, 'tblx4count'),
            tblx5area: sumField(increaseArray, 'tblx5area'),
            tblx5count: sumField(increaseArray, 'tblx5count'),
            tblx6area: sumField(increaseArray, 'tblx6area'),
            tblx6count: sumField(increaseArray, 'tblx6count'),
            tblx7area: sumField(increaseArray, 'tblx7area'),
            tblx7count: sumField(increaseArray, 'tblx7count'),
            sumarea: sumField(increaseArray, 'sumarea'),
            sumcount: sumField(increaseArray, 'sumcount'),
        };
        
        // 计算 decreaseArray 中所有项的相关字段之和
        const totalDecrease = {
            ...totalIncrease, 
            cou: '总计', 
            tblx1area: sumField(decreaseArray, 'tblx1area'),
            tblx1count: sumField(decreaseArray, 'tblx1count'),
            tblx2area: sumField(decreaseArray, 'tblx2area'),
            tblx2count: sumField(decreaseArray, 'tblx2count'),
            tblx3area: sumField(decreaseArray, 'tblx3area'),
            tblx3count: sumField(decreaseArray, 'tblx3count'),
            tblx4area: sumField(decreaseArray, 'tblx4area'),
            tblx4count: sumField(decreaseArray, 'tblx4count'),
            tblx5area: sumField(decreaseArray, 'tblx5area'),
            tblx5count: sumField(decreaseArray, 'tblx5count'),
            tblx6area: sumField(decreaseArray, 'tblx6area'),
            tblx6count: sumField(decreaseArray, 'tblx6count'),
            tblx7area: sumField(decreaseArray, 'tblx7area'),
            tblx7count: sumField(decreaseArray, 'tblx7count'),
            sumarea: sumField(decreaseArray, 'sumarea'),
            sumcount: sumField(decreaseArray, 'sumcount'),
        };

        // 计算 increaseGdArray 中所有项的相关字段之和
  const gdtotalIncrease = {
            cou: '总计',
            tblx1area: sumField(increaseGdArray, 'tblx1area'),
            tblx1count: sumField(increaseGdArray, 'tblx1count'),
            tblx2area: sumField(increaseGdArray, 'tblx2area'),
            tblx2count: sumField(increaseGdArray, 'tblx2count'),
            tblx3area: sumField(increaseGdArray, 'tblx3area'),
            tblx3count: sumField(increaseGdArray, 'tblx3count'),
            tblx4area: sumField(increaseGdArray, 'tblx4area'),
            tblx4count: sumField(increaseGdArray, 'tblx4count'),
            tblx5area: sumField(increaseGdArray, 'tblx5area'),
            tblx5count: sumField(increaseGdArray, 'tblx5count'),
            tblx6area: sumField(increaseGdArray, 'tblx6area'),
            tblx6count: sumField(increaseGdArray, 'tblx6count'),
            tblx7area: sumField(increaseGdArray, 'tblx7area'),
            tblx7count: sumField(increaseGdArray, 'tblx7count'),
            sumarea: sumField(increaseGdArray, 'sumarea'),
            sumcount: sumField(increaseGdArray, 'sumcount'),
        };
        
        // 计算 decreaseGdArray 中所有项的相关字段之和
        const gdtotalDecrease = {
            ...totalIncrease, 
            cou: '总计', 
            tblx1area: sumField(decreaseGdArray, 'tblx1area'),
            tblx1count: sumField(decreaseGdArray, 'tblx1count'),
            tblx2area: sumField(decreaseGdArray, 'tblx2area'),
            tblx2count: sumField(decreaseGdArray, 'tblx2count'),
            tblx3area: sumField(decreaseGdArray, 'tblx3area'),
            tblx3count: sumField(decreaseGdArray, 'tblx3count'),
            tblx4area: sumField(decreaseGdArray, 'tblx4area'),
            tblx4count: sumField(decreaseGdArray, 'tblx4count'),
            tblx5area: sumField(decreaseGdArray, 'tblx5area'),
            tblx5count: sumField(decreaseGdArray, 'tblx5count'),
            tblx6area: sumField(decreaseGdArray, 'tblx6area'),
            tblx6count: sumField(decreaseGdArray, 'tblx6count'),
            tblx7area: sumField(decreaseGdArray, 'tblx7area'),
            tblx7count: sumField(decreaseGdArray, 'tblx7count'),
            sumarea: sumField(decreaseGdArray, 'sumarea'),
            sumcount: sumField(decreaseGdArray, 'sumcount'),
        };
        
        // 将总计项添加到各自数组的末尾
        increaseArray.push(totalIncrease);
        decreaseArray.push(totalDecrease);
        increaseGdArray.push(gdtotalIncrease);
        decreaseGdArray.push(gdtotalDecrease);
        // 输出更新后的数组
        console.log('更新后的 increaseArray:', increaseArray);
        console.log('更新后的 decreaseArray:', decreaseArray);
        console.log('更新后的 increaseGdArray:', increaseGdArray);
        console.log('更新后的 decreaseGdArray:', decreaseGdArray);

        //生成表格
        const rows1 = [
            new docx.TableRow({
                children: [
                  new docx.TableCell({
                    children: [new docx.Paragraph({ text: "县市区" }),],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                  new docx.TableCell({
                    children: [new docx.Paragraph({ text: "超标准绿色通道" }),],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                  new docx.TableCell({
                    children: [
                      new docx.Paragraph({ text: "坑塘水面" }),
                    ],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                  new docx.TableCell({
                      children: [
                      new docx.Paragraph({ text: "违法违规批地用地" }),
                    ],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                  new docx.TableCell({
                      children: [
                      new docx.Paragraph({ text: "违规堆放材料" }),
                    ],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                  new docx.TableCell({
                      children: [
                      new docx.Paragraph({ text: "违规非农建设" }),
                    ],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                  new docx.TableCell({
                      children: [
                      new docx.Paragraph({ text: "违规绿化造林" }),
                    ],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                  new docx.TableCell({
                      children: [
                      new docx.Paragraph({ text: "违规挖塘养殖" }),
                    ],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                  new docx.TableCell({
                      children: [
                      new docx.Paragraph({ text: "总计" }),
                    ],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                ],
            }),
        ]
        increaseGdArray.forEach(item => {  
            rows1.push(new docx.TableRow({  
                children: [  
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${item.cou}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),  
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${parseFloat(item.tblx1area).toFixed(2)}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),  
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${parseFloat(item.tblx2area).toFixed(2)}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${parseFloat(item.tblx3area).toFixed(2)}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${parseFloat(item.tblx4area).toFixed(2)}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${parseFloat(item.tblx5area).toFixed(2)}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${parseFloat(item.tblx6area).toFixed(2)}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${parseFloat(item.tblx7area).toFixed(2)}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${parseFloat(item.sumarea).toFixed(2)}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),
                ],  
            }));  
        });

        const rows2 = [
            new docx.TableRow({
                children: [
                  new docx.TableCell({
                    children: [new docx.Paragraph({ text: "县市区" }),],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                  new docx.TableCell({
                    children: [new docx.Paragraph({ text: "超标准绿色通道" }),],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                  new docx.TableCell({
                    children: [
                      new docx.Paragraph({ text: "坑塘水面" }),
                    ],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                  new docx.TableCell({
                      children: [
                      new docx.Paragraph({ text: "违法违规批地用地" }),
                    ],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                  new docx.TableCell({
                      children: [
                      new docx.Paragraph({ text: "违规堆放材料" }),
                    ],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                  new docx.TableCell({
                      children: [
                      new docx.Paragraph({ text: "违规非农建设" }),
                    ],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                  new docx.TableCell({
                      children: [
                      new docx.Paragraph({ text: "违规绿化造林" }),
                    ],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                  new docx.TableCell({
                      children: [
                      new docx.Paragraph({ text: "违规挖塘养殖" }),
                    ],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                  new docx.TableCell({
                      children: [
                      new docx.Paragraph({ text: "总计" }),
                    ],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                ],
            }),
        ]
        increaseGdArray.forEach(item => {  
            rows2.push(new docx.TableRow({  
                children: [  
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${item.cou}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${item.tblx1count}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${item.tblx2count}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${item.tblx3count}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${item.tblx4count}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${item.tblx5count}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${item.tblx6count}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${item.tblx7count}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${item.sumcount}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),
                ],  
            }));  
        });

        const rows3 = [
            new docx.TableRow({
                children: [
                  new docx.TableCell({
                    children: [new docx.Paragraph({ text: "县市区" }),],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                  new docx.TableCell({
                    children: [new docx.Paragraph({ text: "超标准绿色通道" }),],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                  new docx.TableCell({
                    children: [
                      new docx.Paragraph({ text: "坑塘水面" }),
                    ],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                  new docx.TableCell({
                      children: [
                      new docx.Paragraph({ text: "违法违规批地用地" }),
                    ],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                  new docx.TableCell({
                      children: [
                      new docx.Paragraph({ text: "违规堆放材料" }),
                    ],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                  new docx.TableCell({
                      children: [
                      new docx.Paragraph({ text: "违规非农建设" }),
                    ],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                  new docx.TableCell({
                      children: [
                      new docx.Paragraph({ text: "违规绿化造林" }),
                    ],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                  new docx.TableCell({
                      children: [
                      new docx.Paragraph({ text: "违规挖塘养殖" }),
                    ],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                  new docx.TableCell({
                      children: [
                      new docx.Paragraph({ text: "总计" }),
                    ],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                ],
            }),
        ]
        decreaseGdArray.forEach(item => {  
            rows3.push(new docx.TableRow({  
                children: [  
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${item.cou}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),  
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${parseFloat(item.tblx1area).toFixed(2)}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),  
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${parseFloat(item.tblx2area).toFixed(2)}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${parseFloat(item.tblx3area).toFixed(2)}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${parseFloat(item.tblx4area).toFixed(2)}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${parseFloat(item.tblx5area).toFixed(2)}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${parseFloat(item.tblx6area).toFixed(2)}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${parseFloat(item.tblx7area).toFixed(2)}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${parseFloat(item.sumarea).toFixed(2)}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),
                ],  
            }));  
        });

        const rows4 = [
            new docx.TableRow({
                children: [
                  new docx.TableCell({
                    children: [new docx.Paragraph({ text: "县市区" }),],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                  new docx.TableCell({
                    children: [new docx.Paragraph({ text: "超标准绿色通道" }),],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                  new docx.TableCell({
                    children: [
                      new docx.Paragraph({ text: "坑塘水面" }),
                    ],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                  new docx.TableCell({
                      children: [
                      new docx.Paragraph({ text: "违法违规批地用地" }),
                    ],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                  new docx.TableCell({
                      children: [
                      new docx.Paragraph({ text: "违规堆放材料" }),
                    ],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                  new docx.TableCell({
                      children: [
                      new docx.Paragraph({ text: "违规非农建设" }),
                    ],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                  new docx.TableCell({
                      children: [
                      new docx.Paragraph({ text: "违规绿化造林" }),
                    ],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                  new docx.TableCell({
                      children: [
                      new docx.Paragraph({ text: "违规挖塘养殖" }),
                    ],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                  new docx.TableCell({
                      children: [
                      new docx.Paragraph({ text: "总计" }),
                    ],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                ],
            }),
        ]
        decreaseGdArray.forEach(item => {  
            rows4.push(new docx.TableRow({  
                children: [  
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${item.cou}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${item.tblx1count}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${item.tblx2count}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${item.tblx3count}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${item.tblx4count}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${item.tblx5count}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${item.tblx6count}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${item.tblx7count}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${item.sumcount}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),
                ],  
            }));  
        });

        const rows5 = [
            new docx.TableRow({
                children: [
                  new docx.TableCell({
                    children: [new docx.Paragraph({ text: "县市区" }),],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                  new docx.TableCell({
                    children: [new docx.Paragraph({ text: "超标准绿色通道" }),],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                  new docx.TableCell({
                    children: [
                      new docx.Paragraph({ text: "坑塘水面" }),
                    ],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                  new docx.TableCell({
                      children: [
                      new docx.Paragraph({ text: "违法违规批地用地" }),
                    ],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                  new docx.TableCell({
                      children: [
                      new docx.Paragraph({ text: "违规堆放材料" }),
                    ],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                  new docx.TableCell({
                      children: [
                      new docx.Paragraph({ text: "违规非农建设" }),
                    ],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                  new docx.TableCell({
                      children: [
                      new docx.Paragraph({ text: "违规绿化造林" }),
                    ],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                  new docx.TableCell({
                      children: [
                      new docx.Paragraph({ text: "违规挖塘养殖" }),
                    ],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                  new docx.TableCell({
                      children: [
                      new docx.Paragraph({ text: "总计" }),
                    ],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                ],
            }),
        ]
        increaseArray.forEach(item => {  
            rows5.push(new docx.TableRow({  
                children: [  
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${item.cou}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),  
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${parseFloat(item.tblx1area).toFixed(2)}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),  
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${parseFloat(item.tblx2area).toFixed(2)}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${parseFloat(item.tblx3area).toFixed(2)}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${parseFloat(item.tblx4area).toFixed(2)}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${parseFloat(item.tblx5area).toFixed(2)}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${parseFloat(item.tblx6area).toFixed(2)}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${parseFloat(item.tblx7area).toFixed(2)}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${parseFloat(item.sumarea).toFixed(2)}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),
                ],  
            }));  
        });

        const rows6 = [
            new docx.TableRow({
                children: [
                  new docx.TableCell({
                    children: [new docx.Paragraph({ text: "县市区" }),],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                  new docx.TableCell({
                    children: [new docx.Paragraph({ text: "超标准绿色通道" }),],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                  new docx.TableCell({
                    children: [
                      new docx.Paragraph({ text: "坑塘水面" }),
                    ],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                  new docx.TableCell({
                      children: [
                      new docx.Paragraph({ text: "违法违规批地用地" }),
                    ],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                  new docx.TableCell({
                      children: [
                      new docx.Paragraph({ text: "违规堆放材料" }),
                    ],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                  new docx.TableCell({
                      children: [
                      new docx.Paragraph({ text: "违规非农建设" }),
                    ],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                  new docx.TableCell({
                      children: [
                      new docx.Paragraph({ text: "违规绿化造林" }),
                    ],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                  new docx.TableCell({
                      children: [
                      new docx.Paragraph({ text: "违规挖塘养殖" }),
                    ],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                  new docx.TableCell({
                      children: [
                      new docx.Paragraph({ text: "总计" }),
                    ],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                ],
            }),
        ]
        increaseArray.forEach(item => {  
            rows6.push(new docx.TableRow({  
                children: [  
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${item.cou}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${item.tblx1count}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${item.tblx2count}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${item.tblx3count}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${item.tblx4count}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${item.tblx5count}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${item.tblx6count}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${item.tblx7count}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${item.sumcount}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),
                ],  
            }));  
        });

        const rows7 = [
            new docx.TableRow({
                children: [
                  new docx.TableCell({
                    children: [new docx.Paragraph({ text: "县市区" }),],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                  new docx.TableCell({
                    children: [new docx.Paragraph({ text: "超标准绿色通道" }),],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                  new docx.TableCell({
                    children: [
                      new docx.Paragraph({ text: "坑塘水面" }),
                    ],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                  new docx.TableCell({
                      children: [
                      new docx.Paragraph({ text: "违法违规批地用地" }),
                    ],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                  new docx.TableCell({
                      children: [
                      new docx.Paragraph({ text: "违规堆放材料" }),
                    ],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                  new docx.TableCell({
                      children: [
                      new docx.Paragraph({ text: "违规非农建设" }),
                    ],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                  new docx.TableCell({
                      children: [
                      new docx.Paragraph({ text: "违规绿化造林" }),
                    ],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                  new docx.TableCell({
                      children: [
                      new docx.Paragraph({ text: "违规挖塘养殖" }),
                    ],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                  new docx.TableCell({
                      children: [
                      new docx.Paragraph({ text: "总计" }),
                    ],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                ],
            }),
        ]
        decreaseArray.forEach(item => {  
            rows7.push(new docx.TableRow({  
                children: [  
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${item.cou}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),  
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${parseFloat(item.tblx1area).toFixed(2)}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),  
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${parseFloat(item.tblx2area).toFixed(2)}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${parseFloat(item.tblx3area).toFixed(2)}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${parseFloat(item.tblx4area).toFixed(2)}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${parseFloat(item.tblx5area).toFixed(2)}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${parseFloat(item.tblx6area).toFixed(2)}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${parseFloat(item.tblx7area).toFixed(2)}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${parseFloat(item.sumarea).toFixed(2)}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),
                ],  
            }));  
        });

        const rows8 = [
            new docx.TableRow({
                children: [
                  new docx.TableCell({
                    children: [new docx.Paragraph({ text: "县市区" }),],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                  new docx.TableCell({
                    children: [new docx.Paragraph({ text: "超标准绿色通道" }),],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                  new docx.TableCell({
                    children: [
                      new docx.Paragraph({ text: "坑塘水面" }),
                    ],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                  new docx.TableCell({
                      children: [
                      new docx.Paragraph({ text: "违法违规批地用地" }),
                    ],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                  new docx.TableCell({
                      children: [
                      new docx.Paragraph({ text: "违规堆放材料" }),
                    ],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                  new docx.TableCell({
                      children: [
                      new docx.Paragraph({ text: "违规非农建设" }),
                    ],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                  new docx.TableCell({
                      children: [
                      new docx.Paragraph({ text: "违规绿化造林" }),
                    ],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                  new docx.TableCell({
                      children: [
                      new docx.Paragraph({ text: "违规挖塘养殖" }),
                    ],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                  new docx.TableCell({
                      children: [
                      new docx.Paragraph({ text: "总计" }),
                    ],
                    verticalAlign: docx.VerticalAlign.CENTER,
                  }),
                ],
            }),
        ]
        decreaseArray.forEach(item => {  
            rows8.push(new docx.TableRow({  
                children: [  
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${item.cou}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${item.tblx1count}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${item.tblx2count}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${item.tblx3count}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${item.tblx4count}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${item.tblx5count}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${item.tblx6count}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${item.tblx7count}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),
                    new docx.TableCell({  
                        children: [new docx.Paragraph({ text: `${item.sumcount}` })],  
                        verticalAlign: docx.VerticalAlign.CENTER,  
                    }),
                ],  
            }));  
        });
        console.log("----------");
        console.log(increase2,decrease2,allgdmj);

        var textpara1 = "1、永久基本农田5亩以上或一般耕地10亩以上的图斑" + gdarray.length + "个，图斑总面积" + parseFloat(jbnt_ybgd_sumarea).toFixed(2) + "亩，占用永久基本农田面积" + parseFloat(yjjbnt_sumarea).toFixed(2)
                        + "亩," + "占用耕地面积" + parseFloat(gdmj_sumarea).toFixed(2) + "亩。其中，新增“非农非粮”图斑" + increase1.count + "个，图斑面积" + parseFloat(increase1.area).toFixed(2) + "亩，占用永久基本农田面积" 
                        + parseFloat(increase1.yjjbntmj).toFixed(2) + "亩,占用耕地面积" + parseFloat(increase1.gdmj).toFixed(2) + "亩；" + "恢复耕地图斑" + decrease1.count + "个，图斑面积" + parseFloat(decrease1.area).toFixed(2)
                        + "亩，占用永久基本农田面积" + parseFloat(decrease1.yjjbntmj).toFixed(2) + "亩，占用耕地面积" + parseFloat(decrease1.gdmj).toFixed(2) + "亩。";
        var textpara2 = "2、变化图斑" + array.length + "个，图斑总面积" + parseFloat(allareasum).toFixed(2) + "亩，占用永久基本农田面积" + parseFloat(allyjjbntmj).toFixed(2)
                        + "亩，占用耕地面积" + parseFloat(allgdmj).toFixed(2)+ "亩。其中，新增“非农非粮”图斑" + increase2.count + "个，图斑面积" + parseFloat(increase2.area).toFixed(2) + "亩，占用永久基本农田面积" 
                        + parseFloat(increase2.yjjbntmj).toFixed(2) + "亩，占用耕地面积" + parseFloat(increase2.gdmj).toFixed(2) + "亩；恢复耕地图斑" + decrease2.count + "个，图斑面积" + parseFloat(decrease2.area).toFixed(2)
                        + "亩，占用永久基本农田面积" + parseFloat(decrease2.yjjbntmj).toFixed(2) + "亩，占用耕地面积" + parseFloat(decrease2.gdmj).toFixed(2) + "亩。";
        var gztbtotalcount = gztb_sy_countsum + gztb_tt_countsum;
        var textpara3 = "3、跟踪图斑" + gztbtotalcount + "个，图斑总面积" + parseFloat(gztb_sy_areasum+gztb_tt_areasum).toFixed(2)
                        + "亩，占用永久基本农田面积" + parseFloat(gztb_sy_yjjbntarea+gztb_tt_yjjbntarea).toFixed(2) + "亩,占用耕地面积" + parseFloat(gdmj_sy_areasum+gdmj_tt_areasum).toFixed(2)
                        + "亩。其中季节造成的水淹图斑个数" + gztb_sy_countsum + "个，图斑面积" + parseFloat(gztb_sy_areasum).toFixed(2)
                        + "亩；推土区个数" + gztb_tt_countsum + "个，图斑面积" + parseFloat(gztb_tt_areasum).toFixed(2) + "亩。"; 
        var dl_dp_countsum = dl_countsum + dp_countsum + gq_countsum;
        var textpara4 = "4、疑似农村道路和大棚图斑共" + dl_dp_countsum + "个，图斑总面积" + parseFloat(dl_areasum+dp_areasum+gq_areasum).toFixed(2)
                        + "亩，占用永久基本农田面积" + parseFloat(dl_yjjbntarea+dp_yjjbntarea+gq_yjjbntarea).toFixed(2) + "亩,占用耕地面积" + parseFloat(dl_gdmjarea+dp_gdmjarea+gq_gdmjarea).toFixed(2) + "亩。其中疑似大棚"
                        + dp_countsum + "个、图斑面积" + parseFloat(dp_areasum).toFixed(2) + "亩；沟渠" + gq_countsum + "个、图斑面积" + parseFloat(gq_areasum).toFixed(2)
                        + "亩；农村道路" + dl_countsum + "个，图斑面积" + parseFloat(dl_areasum).toFixed(2) + "亩。";
        var textpara5 = "利用2024年三季度芜湖市0.5m分辨率遥感影像，经过解译分析和外业核实，芜湖市耕地变化图斑中永久基本农田5亩以上或一般耕地10亩以上的图斑"
                        + gdarray.length + "个，图斑总面积" + parseFloat(jbnt_ybgd_sumarea).toFixed(2) + "亩，占用永久基本农田面积" + parseFloat(yjjbnt_sumarea).toFixed(2)
                        + "亩，占用耕地面积" + parseFloat(gdmj_sumarea).toFixed(2)  + "亩。其中，新增“非农非粮”图斑" + increase1.count + "个，图斑面积" + parseFloat(increase1.area).toFixed(2) + "亩，占用永久基本农田面积" 
                        + parseFloat(increase1.yjjbntmj).toFixed(2) + "亩，占用耕地面积" + parseFloat(increase1.gdmj).toFixed(2)  + "亩。恢复耕地图斑" + decrease1.count + "个，图斑面积" + parseFloat(decrease1.area).toFixed(2)
                        + "亩，占用永久基本农田面积" + parseFloat(decrease1.yjjbntmj).toFixed(2) + "亩，占用耕地面积"  + parseFloat(decrease1.gdmj).toFixed(2) + "亩。";
        
        var percen1 = (increasesortArray[0].area / increase1.area)*100;
        var percen2 = (increasesortArray[increasesortArray.length-1].area / increase1.area)*100;
        var percen3 = (decreasesortArray[0].area / decrease1.area)*100;
        var percen4 = (decreasesortArray[decreasesortArray.length-1].area / decrease1.area)*100;
        var textpara6 = "新增“非农非粮”图斑：经过解译分析和外业核实，芜湖市耕地范围内共发现新增“非农非粮”图斑" + increase1.count + "个，图斑面积"
                        + parseFloat(increase1.area).toFixed(2) + "亩，占用永久基本农田面积" 
                        + parseFloat(increase1.yjjbntmj).toFixed(2) + "亩，占用耕地面积" + parseFloat(increase1.gdmj).toFixed(2) +"亩。其中\“非粮化\”面积为" + parseFloat(flarea1).toFixed(2) + "亩，“非农化”面积为" 
                        + parseFloat(fnarea1).toFixed(2) + "亩。按图斑类型分，" + increasesortArray[0].tblx + "图斑面积" + parseFloat(increasesortArray[0].area).toFixed(2) + "亩，占比最大，为" 
                        + parseFloat(percen1).toFixed(0) + "%，" + increasesortArray[increasesortArray.length-1].tblx + "图斑面积" + parseFloat(increasesortArray[increasesortArray.length-1].area).toFixed(2)
                        + "亩，占比最小，为" + parseFloat(percen2).toFixed(0) + "%。具体见图3-1，表3-1、表3-2。";
        var textpara7 = "恢复耕地图斑：经过解译分析和外业核实，芜湖市耕地范围内共发现恢复耕地图斑" + decrease2.count + "个，图斑面积"
                        + parseFloat(decrease2.area).toFixed(2) + "亩，占用永久基本农田面积" 
                        + parseFloat(decrease2.yjjbntmj).toFixed(2) + "亩，占用耕地面积" + parseFloat(decrease2.gdmj).toFixed(2) +"亩；其中\“非粮化\”面积为" + parseFloat(flarea2).toFixed(2) + "亩，“非农化”面积为"
                        + parseFloat(fnarea2).toFixed(2) + "亩。按图斑类型分，" + decreasesortArray[0].tblx + "图斑面积" + parseFloat(decreasesortArray[0].area).toFixed(2) + "亩，占比最大，为" 
                        + parseFloat(percen3).toFixed(0) + "%，" + decreasesortArray[decreasesortArray.length-1].tblx + "图斑面积" + parseFloat(decreasesortArray[decreasesortArray.length-1].area).toFixed(2)
                        + "亩，占比最小，为" + parseFloat(percen4).toFixed(0) + "%。具体见图3-2，表3-3、表3-4。";
        var textpara8 = "利用2024年三季度芜湖市0.5m分辨率遥感影像，经过解译分析，芜湖市耕地范围内变化图斑" + array.length + "个，图斑总面积" + parseFloat(allareasum).toFixed(2) + "亩，占用永久基本农田面积" + parseFloat(allyjjbntmj).toFixed(2)
                        + "亩，占用耕地面积"+parseFloat(gdmj_sumarea).toFixed(2) +"亩。其中，新增“非农非粮”图斑" + increase2.count + "个，图斑面积" + parseFloat(increase2.area).toFixed(2) + "亩，占用永久基本农田面积" 
                        + parseFloat(increase2.yjjbntmj).toFixed(2) + "亩，占用耕地面积" +parseFloat(increase1.gdmj).toFixed(2) + "亩；恢复耕地图斑" + decrease2.count + "个，图斑面积" + parseFloat(decrease2.area).toFixed(2)
                        + "亩，占用永久基本农田面积" + parseFloat(decrease2.yjjbntmj).toFixed(2) + "亩，占用耕地面积" + parseFloat(decrease1.gdmj).toFixed(2) + "亩。";
        var percen5 = (tblxincreasearray[0].area / increase2.area)*100;
        var percen6 = parseFloat((tblxincreasearray[tblxincreasearray.length-1].area /increase2.area)*1000).toFixed(0)/10;
        var textpara9 = "新增“非农非粮”图斑：经过解译分析，芜湖市耕地范围内共发现新增“非农非粮”图斑" + increase2.count + "个，图斑面积" + parseFloat(increase2.area).toFixed(2) + "亩，占用永久基本农田面积" + parseFloat(increase2.yjjbntmj).toFixed(2)
                        + "亩，占用耕地面积" + parseFloat(increase1.gdmj).toFixed(2)+"亩。其中，新增“非粮化”面积为" + parseFloat(increasefl).toFixed(2) + "亩，“非农化”面积为" + parseFloat(increasefn).toFixed(2) + "亩。按图斑类型分"
                        + tblxincreasearray[0].tblx + "图斑面积" + parseFloat(tblxincreasearray[0].area).toFixed(2) + "亩，占比最大，为" +parseFloat(percen5).toFixed(0) + "%，"
                        + tblxincreasearray[tblxincreasearray.length-1].tblx + "图斑面积" + parseFloat(tblxincreasearray[tblxincreasearray.length-1].area).toFixed(2) + "亩，占比最小，为"
                        + percen6 + "%。具体见图3-3，表3-5、3-6";
        var percen7 = (tblxdecreasearray[0].area / decrease2.area)*100;
        var percen8 = parseFloat((tblxdecreasearray[tblxdecreasearray.length-1].area /decrease2.area)*1000).toFixed(0)/10;
        var textpara10 = "恢复耕地图斑：经过解译分析，芜湖市耕地范围内共发现恢复耕地图斑" + decrease2.count + "个，图斑面积"
                        + parseFloat(decrease2.area).toFixed(2) + "亩，占用永久基本农田面积" 
                        + parseFloat(decrease2.yjjbntmj).toFixed(2) + "亩，占用耕地面积"+ parseFloat(decrease2.gdmj).toFixed(2) +"亩。其中“非粮化”面积为" + parseFloat(decreasefl).toFixed(2) + "亩，“非农化”面积为" + parseFloat(decreasefn).toFixed(2)
                        + "亩。按图斑类型分" + tblxdecreasearray[0].tblx + "图斑面积" + parseFloat(tblxdecreasearray[0].area).toFixed(2) + "亩，占比最大，为" +parseFloat(percen7).toFixed(0) + "%，"
                        + tblxdecreasearray[tblxdecreasearray.length-1].tblx + "图斑面积" + parseFloat(tblxdecreasearray[tblxdecreasearray.length-1].area).toFixed(2) + "亩，占比最小，为"
                        + percen8 + "%。具体见图3-4，表3-7、3-8";
        var textpara11 = "利用2024年三季度芜湖市0.5m分辨率遥感影像，经过解译分析，芜湖市耕地范围内跟踪图斑" + gztbtotalcount + "个，图斑总面积" + parseFloat(gztb_sy_areasum+gztb_tt_areasum).toFixed(2)
                        + "亩，占用永久基本农田面积" + parseFloat(gztb_sy_yjjbntarea+gztb_tt_yjjbntarea).toFixed(2) + "亩，占用耕地面积" + parseFloat(gdmj_sy_areasum+gdmj_tt_areasum).toFixed(2)+ "亩。其中"
        var percen9 = (gztb_sy_areasum/(gztb_sy_areasum + gztb_tt_areasum))*100;
        var percen10 = (gztb_tt_areasum / (gztb_sy_areasum + gztb_tt_areasum))*100;
        if(gztb_sy_areasum > gztb_tt_areasum){
            textpara11 += "季节造成的水淹图斑个数" + gztb_sy_countsum + "个，图斑面积" +  parseFloat(gztb_sy_areasum).toFixed(2) + "亩，占比最大，为" + parseFloat(percen9).toFixed(0)
                       + "%；推土区个数" + gztb_tt_countsum + "个，图斑面积" + parseFloat(gztb_tt_areasum).toFixed(2) + "亩，占比最小，为" + parseFloat(percen10).toFixed(0) + "%。"; 
        }else{
            textpara11 += "推土区图斑个数" + gztb_tt_countsum + "个，图斑面积" + parseFloat(gztb_tt_areasum).toFixed(2) + "亩，占比最大，为"  + parseFloat(percen10).toFixed(0) + "%；季节造成的水淹图斑个数"
                      +  gztb_sy_countsum + "个，图斑面积" +  parseFloat(gztb_sy_areasum).toFixed(2) + "亩，占比最小，为" + parseFloat(percen9).toFixed(0) + "%。"
        }
        var percen11 = (dp_areasum/(dl_areasum+dp_areasum+gq_areasum))*100;
        var percen12 = (gq_areasum/(dl_areasum+dp_areasum+gq_areasum))*100;
        var percen13 = (dl_areasum/(dl_areasum+dp_areasum+gq_areasum))*100;
        var textpara12 = "利用2024年三季度芜湖市0.5m分辨率遥感影像，经过解译分析，芜湖市耕地范围内疑似农村道路和大棚图斑共" + dl_dp_countsum + "个，图斑总面积" + parseFloat(dl_areasum+dp_areasum+gq_areasum).toFixed(2)
                        + "亩，占用永久基本农田面积" + parseFloat(dl_yjjbntarea+dp_yjjbntarea+gq_yjjbntarea).toFixed(2) + "亩，占用耕地面积"+parseFloat(dl_gdmjarea+dp_gdmjarea+gq_gdmjarea).toFixed(2)+"亩。其中疑似大棚"
                        + dp_countsum + "个、图斑面积" + parseFloat(dp_areasum).toFixed(2) + "亩，面积占比为" + parseFloat(percen11).toFixed(0) +"%；沟渠" + gq_countsum + "个、图斑面积" + parseFloat(gq_areasum).toFixed(2)
                        + "亩，面积占比为" + parseFloat(percen12).toFixed(0) + "%；农村道路" + dl_countsum + "个，图斑面积" + parseFloat(dl_areasum).toFixed(2) + "亩，面积占比为" + parseFloat(percen13).toFixed(0) + "%。";

        console.log(textpara4);
        const doc = new docx.Document({
          sections: [
            {
              children: [
                new docx.Paragraph({
                  text: "3.1图斑成果基本情况",
                  heading: docx.HeadingLevel.HEADING_1,
                }),
                new docx.Paragraph({
                  text: textpara1,
                }),
                new docx.Paragraph({
                  text: textpara2,
                }),
                new docx.Paragraph({
                  text: textpara3,
                }),
                new docx.Paragraph({
                  text: textpara4,
                }),
                new docx.Paragraph({
                  text: "3.2永久基本农田5亩以上或一般耕地10亩以上的图斑成果分析",
                  heading: docx.HeadingLevel.HEADING_1,
                }),
                new docx.Paragraph({
                  text: textpara5,
                }),
                new docx.Paragraph({
                  text: textpara6,
                }),
                new docx.Paragraph({
                  text: textpara7,
                }),
                new docx.Paragraph({
                  text: "3.3图斑下发情况",
                  heading: docx.HeadingLevel.HEADING_1,
                }),
                new docx.Paragraph({
                  text: `涉及永久基本农田5亩以上，一般耕地10亩以上的图斑，经现场核实确定存在违法违规问题的，下达各县市区处置。剩余图斑与省级卫片去重整合后下达各县市区。`,
                }),
                new docx.Paragraph({
                  text: "3.4耕地变化监测图斑成果分析",
                  heading: docx.HeadingLevel.HEADING_1,
                }),
                new docx.Paragraph({
                  text: textpara8,
                }),
                new docx.Paragraph({
                  text: textpara9,
                }),
                new docx.Paragraph({
                  text: textpara10,
                }),
                new docx.Paragraph({
                  text: "3.5耕地跟踪图斑成果分析",
                  heading: docx.HeadingLevel.HEADING_1,
                }),
                new docx.Paragraph({
                  text: textpara11,
                }),
                new docx.Paragraph({
                  text: "3.6疑似农村道路和大棚成果分析",
                  heading: docx.HeadingLevel.HEADING_1,
                }),
                new docx.Paragraph({
                  text: textpara12,
                }),
                new docx.Paragraph({
                  text: "表3-1 芜湖市永久基本农田5亩以上或一般耕地10亩以上的新增“非农非粮”图斑面积统计表(单位：亩)",
                  heading: docx.HeadingLevel.HEADING_3,
                  alignment: docx.AlignmentType.CENTER,
                }),
                new docx.Table({
                  rows: rows1
                }),
                new docx.Paragraph({
                  text: "表3-2 芜湖市永久基本农田5亩以上或一般耕地10亩以上的新增“非农非粮”图斑个数统计表(单位：个)",
                  heading: docx.HeadingLevel.HEADING_3,
                  alignment: docx.AlignmentType.CENTER,
                }),
                new docx.Table({
                  rows: rows2
                }),
                new docx.Paragraph({
                  text: "表3-3 芜湖市永久基本农田5亩以上或一般耕地10亩以上的恢复耕地图斑面积统计表(单位：亩)",
                  heading: docx.HeadingLevel.HEADING_3,
                  alignment: docx.AlignmentType.CENTER,
                }),
                new docx.Table({
                  rows: rows3
                }),
                new docx.Paragraph({
                  text: "表3-4 芜湖市永久基本农田5亩以上或一般耕地10亩以上的恢复耕地图斑个数统计表(单位：个)",
                  heading: docx.HeadingLevel.HEADING_3,
                  alignment: docx.AlignmentType.CENTER,
                }),
                new docx.Table({
                  rows: rows4
                }),
                new docx.Paragraph({
                  text: "表3-5 芜湖市自然资源综合遥感监测耕地第三季度监测新增“非农非粮”图斑面积统计表(单位：亩)",
                  heading: docx.HeadingLevel.HEADING_3,
                  alignment: docx.AlignmentType.CENTER,
                }),
                new docx.Table({
                  rows: rows5
                }),
                new docx.Paragraph({
                  text: "表3-6 芜湖市自然资源综合遥感监测耕地第三季度监测新增“非农非粮”图斑个数统计表(单位：个)",
                  heading: docx.HeadingLevel.HEADING_3,
                  alignment: docx.AlignmentType.CENTER,
                }),
                new docx.Table({
                  rows: rows6
                }),
                new docx.Paragraph({
                  text: "表3-7 芜湖市自然资源综合遥感监测耕地第三季度监测恢复耕地图斑面积统计表(单位：亩)",
                  heading: docx.HeadingLevel.HEADING_3,
                  alignment: docx.AlignmentType.CENTER,
                }),
                new docx.Table({
                  rows: rows7
                }),
                new docx.Paragraph({
                  text: "表3-8 芜湖市自然资源综合遥感监测耕地第三季度监测恢复耕地图斑个数统计表(单位：个)",
                  heading: docx.HeadingLevel.HEADING_3,
                  alignment: docx.AlignmentType.CENTER,
                }),
                new docx.Table({
                  rows: rows8
                }),
              ],
            },
          ],
        });
        
        docx.Packer.toBlob(doc).then((blob) => {
            console.log(blob);
            saveAs(blob, "耕地监测报告.docx");
            console.log("Document created successfully");
        });

      }
      </script>
  </body>
</html>
